package com.whfc.safety.param;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @ClasssName SafetyPartEditParam
 * @Description 修改安全部位请求类
 * @Author hw
 * @Date 2020/8/6 9:10
 * @Version 1.0
 */
@Data
public class SafetyPartEditParam implements Serializable {
    /**
     * 部位ID
     */
    @NotNull
    private Integer partId;
    /**
     * 部位编码
     */
    @NotEmpty
    @Size(min = 1,max = 4,message = "编码格式不能大于4位")
    private String code;
    /**
     * 部位名称
     */
    @NotEmpty
    @Size(min = 1,max = 30,message = "部位名称不能超过30位")
    private String name;
}
